"use strict";

let __type = 'district';
let __mapping = {
    "district": {
        "_all": {
            "indexAnalyzer": "ik",
            "searchAnalyzer": "ik",
            "term_vector": "no",
            "store": "false"
        },
        "properties": {
            "code": {
                "type": "long"
            },
            "pCode": {
                "type": "long"
            },
            "created_at": {
                "type": "Date"
            },
            "updated_at": {
                "type": "Date"
            },
            "name": {
                "type": "string",
                "store": "no",
                "term_vector": "with_positions_offsets",
                "indexAnalyzer": "ik",
                "searchAnalyzer": "ik",
                "include_in_all": "true",
                "boost": 8
            },
            // not work
            //"loc.coorindates": {
            //    "type": "geo_point"
            //},
            "loc": {
                "properties": {
                    "coordinates": {
                        "type": "geo_point"
                    },
                    "type": {
                        "type": "string",
                        "index": "not_analyzed"
                    }
                }
            },
            "area_code": {
                "type": "long",
                "index": "not_analyzed"
            }
        }
    }
};

//  meta info
module.exports = {
    type: __type,
    mapping: __mapping
};
